package sm.codec.api;

import org.apache.mina.core.buffer.IoBuffer;

import sm.codec.exception.DecodeException;
import sm.codec.exception.EncodeException;

public interface Codec {
	public Object decode(IoBuffer buffer) throws DecodeException;

	public void encode(IoBuffer buffer, Object value) throws EncodeException;
}
